package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.CountTimesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ReservationMapper {
    Integer selectReservate(Long userId);

    List<CountTimesVo> checkRemainderNumber(LocalDateTime begin, LocalDateTime end);

    void save(Reservation reservation);

    Page<Reservation> selectList(Long userId, Integer status);

    void update( Reservation reservation);
}
